import { createRouter, createWebHistory,createWebHashHistory } from 'vue-router'

import home from '@/views/home/index.vue'                                      //首页
import homepage from'@/views/home/children/homepage.vue'                            //主页
import numericalFeatureCorrelation from '@/views/home/children/numericalFeatureCorrelation.vue'  //数值型特征相关性
import correlationOfCategoricalFeatures from '@/views/home/children/correlationOfCategoricalFeatures.vue' //分类型特征相关性
import featureAnalysis from '@/views/home/children/featureAnalysis.vue'             // 特征分析
import modelComparison from '@/views/home/children/modelComparison.vue'             //模型对比
// import depressionWarning from '@/views/home/children/depressionWarning.vue'        //抑郁预警及干预策略

const router = createRouter({
  // history: createWebHistory(import.meta.env.BASE_URL),
  history: createWebHashHistory(),
  routes: [
    {
      path: '/',                             //首页
      name: 'home',
      component: home,
      redirect: '/home/homepage',
      children:[
        {
          path: '/home/homepage',                //主页
          name: 'homepage',
          component: homepage,
        },

        {
          path: '/home/numericalFeatureCorrelation',                //数值型特征相关性
          name: 'numericalFeatureCorrelation',
          component: numericalFeatureCorrelation,
        },

        {
          path: '/home/correlationOfCategoricalFeatures',                //分类型特征相关性
          name: 'correlationOfCategoricalFeatures',
          component: correlationOfCategoricalFeatures,
        },


        {
          path: '/home/featureAnalysis',               //特征分析
          name: 'featureAnalysis',
          component: featureAnalysis,
        },

        {
          path: '/home/modelComparison',         //模型对比
          name: 'modelComparison',
          component: modelComparison,
        },

        // {
        //   path: '/home/depressionWarning',      //抑郁预警及干预策略
        //   name: 'depressionWarning',
        //   component: depressionWarning,
        // },
      ]
    },
  ],
})



export default router
